package org.example.zuoye.mapper;

import org.apache.ibatis.annotations.Select;
import org.example.zuoye.entity.Admin;

import java.util.List;

/**
* @author 86198
* @description 针对表【admin】的数据库操作Mapper
* @createDate 2024-08-10 15:51:37
* @Entity org.example.zuoye.entity.Admin
*/
public interface AdminMapper {
    /**
     * 根据手机号查询
     */
     Admin selectByPhone(String phone);

    /**
     * 联合查询
     * @param admin
     * @return
     */
    List<Admin> search(Admin admin);

    int deleteByPrimaryKey(Long id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    /**
     * 批量删除
     */
    int deleteByIds(Integer[] ids);

    /**
     * 修改
     */
    int update(Admin admin);

    Admin selectByUserName(String username);
}
